//
//  PageTitleView.h
//  YuDou
//
//  Created by yingqi on 2018/6/22.
//  Copyright © 2018年 yingqi. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PageTitleView;
@protocol PageTitleViewDelegate <NSObject>

@optional
- (void)pageTitleView:(PageTitleView *)titleView selectedIndex:(NSInteger)selectedIndex;
@end

@interface PageTitleView : UIView

@property (nonatomic, weak) id<PageTitleViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray <NSString *>*)titles;
- (void)setTitleWithProgress:(CGFloat)progress sourceIndex:(NSInteger)sourceIndex targetIndex:(NSInteger)targetIndex;

@end
